/*
 * <p>Copyright® 2009-2022 东软 IT 实训中心版权所有。</p>
 */

package com.max.back.doctor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.max.back.doctor.dao.PrescriptionItemDao;
import com.max.back.doctor.form.PrescriptionForm;
import com.max.back.entity.PrescriptionItem;

import java.util.List;
import java.util.Map;

/**
* @description 
* 
* <p>
* <code>PrescriptionItemService</code>
*
* </p>
* 
* @see 
* @author 辛凤文 forward.seen@foxmail.com
* @version 1.0 
* @time 2022/7/27 22:43 
*/
public interface PrescriptionItemService extends IService<PrescriptionItem> {


    /**
     * 根据已有的数据创建提交的处方单
     * @param form
     * @return
     */
    Boolean deleteAndCreatePrescriptionItems(PrescriptionForm form);

    /**
     * 根据prescriptionId获取已提交的处方项
     * @param prescriptionId
     * @return
     */
    List<Map<String,Object>> getSubmitPrescriptionItems(String prescriptionId);
}